import request from '@/utils/request'
export function getModelList(query) {
  return request({
    url: '/user/list',
    method: 'get',
    params: query
  })
}

export function addModel(data) {
  return request({
    url: '/user/create',
    method: 'post',
    data
  })
}

export function updateModel(data) {
  return request({
    url: '/user/update',
    method: 'put',
    data
  })
}

export function deleteModel(id) {
  return request({
    url: `/user/${id}`,
    method: 'delete'
  })
}
